package com.tm.media.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Ly
 * @Data 2023/2/25 17:02
 * @ClassName StatisticsEntity
 */
@Data
@TableName("wm_news_statistics")
public class StatisticsEntity {
    @TableId(type = IdType.AUTO)
  private   Integer	id;
    private   Integer	userId;
    private   Integer	article;
    private   Integer	readCount;
    @TableField(exist = false)
  private String authorName;
    private    Integer	comment;
    private   Integer	follow;
    private   Integer	collection;
    private  Integer	forward;
    private   Integer	likes;
    private   Integer	unlikes;
    private  Integer	unfollow;
    private  String	burst;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern =  "yyyy-MM-dd",timezone = "GMT+8")
    private Date created_time;
}
